package com.markchu.web.structure.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.markchu.common.enums.StatusEnum;
import com.markchu.common.utils.StatusUtil;
import com.markchu.modules.system.domain.User;
import lombok.Data;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Where;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author mark_chu
 * @date 2023/12/08
 */
@Data
public class ChatsVo implements Serializable {
    // 主键ID
    private Long id;
    // 来自于用户
    private Long fromUserId;
    // 到某个用户
    private Long toUserId;
    // 聊天信息
    private String msgs;
    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
    // 更新时间
    private Date updateDate;
    // 创建者
//    private User createBy;
//    // 更新者
//    private User updateBy;
    // 数据状态
    private Byte status = StatusEnum.OK.getCode();

    private String userFromThum;
    private String userToThum;

    private String userName;

    private String oType;

}